using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestAnim : MonoBehaviour
{
    private AnimCompoent animCompoent;

    private void Start()
    {
        Animator animator = GetComponentInChildren<Animator>();

        animCompoent = GetComponent<AnimCompoent>();
        animCompoent.Init(animator);
    }
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Q))
        {
            animCompoent.PlayAnim("Skill1");
        }
        if (Input.GetKeyDown(KeyCode.W))
        {
            animCompoent.PlayAnim("Skill2");
        }
        if (Input.GetKeyDown(KeyCode.E))
        {
            animCompoent.PlayAnim("Skill3");
        }
        if (Input.GetKeyDown(KeyCode.R))
        {
            animCompoent.PlayAnim("Skill4");
        }
    }
}
